`timescale 1ns/100ps 

//for Rx
`define RxDATA [0]
`define RxSFD [1]
`define RxPREAMBLE [2]
`define RxIDLE [3]
`define RxDROP [4]

//for Tx
`define TxIPG [0]
`define TxFCS [1]
`define TxPAD [2]
`define TxDATA [3]
`define TxPREAMBLE [4]
`define TxIDLE [5]

`define DATA_FRAME [0]
`define REGISTER_FRAME [1]
`define GATE_NORMAL_FRAME [2]
`define GATE_DISCOVERY_FRAME [3]

`define ETH_DA [5:0]
`define ETH_SA [11:6]
`define ETH_LEN_TYPE [13:12]
`define ETH_MPCP_OPCODE [15:14]
`define ETH_MPCP_TIMESTAMP [19:16]